<template>
    <div>
        <button @click="handle">点我</button>
    </div>
</template>

<script>
    export default {
        props: ['value'],
        data() {
            return {
                curVal: this.value
            }
        },
        methods: {
            handle() {
                this.$emit('input', this.curVal++)
            }
        }
    }
</script>

<style lang='less'>

</style>
